package com.yr.ryjk.coin.dao;

import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import com.yr.ryjk.coin.entity.DayCoin;

public interface DayCoinMapper {
    int deleteByPrimaryKey(Integer dayCoinId);

    int insert(DayCoin record);

    int insertSelective(DayCoin record);

    DayCoin selectByPrimaryKey(Integer dayCoinId);

    int updateByPrimaryKeySelective(DayCoin record);

    int updateByPrimaryKey(DayCoin record);

    @Select("select * from day_coin where user_phone=#{0} and day=#{1}")
    @ResultMap("BaseResultMap")
	DayCoin selectByPhoneAndDate(String phone, String ymdOfDate);
}